// 导入 useCookies 函数
import { useCookies } from '@vueuse/integrations/useCookies';

const TokenName= 'token'
const cookies = useCookies()

export function setCookie(token) {
    cookies.set(TokenName, token)
}
export function getCookie() {
    return cookies.get(TokenName)
}
export function deleteCookie() {
    cookies.remove(TokenName)
}